﻿@model Inscriptionem.Models.Views.ContactViewModel

@{
    ViewBag.Title = Inscriptionem.Configuration.Configuration.Instance.General.Title + " » Contact";
    ViewBag.SearchText = "Search";
    Layout = "Layout.cshtml";

    string message = string.Empty;

    switch (Model.Error)
    {
        case Inscriptionem.Models.Enums.ContactError.None:
            {
                break;
            }
        case Inscriptionem.Models.Enums.ContactError.MailEmpty:
            {
                message = "Please enter mail.";
                break;
            }
        case Inscriptionem.Models.Enums.ContactError.MailNotValid:
            {
                message = "Please enter valid mail.";
                break;
            }
        case Inscriptionem.Models.Enums.ContactError.MessageEmpty:
            {
                message = "Please enter message.";
                break;
            }
        default:
            {
                message = "Unknown error occurred, please try again.";
                break;
            }
    }
}
<div class="outer" id="contentwrap">
    <div class="postcont" style="width: 972px;">
		<div id="content">	
			<div class="post type-post status-publish format-standard hentry">
				<h2 class="title" style="text-align: center;">Contact</h2>
			</div>
            <div class="postdate-single contact-error">@message</div>
            <div class="postdate-single">
                <form action="/@(Model.Language)/Contact" method="POST">
                    <div style="float:left; width:40%; text-align: right;">
                        <p class="contact-paragraph">Mail</p>
                    </div>
                    <div>
                        <p class="contact-paragraph"><input type="text" name="Mail" class="contact-input" value="@Model.Mail"/></p>
                    </div>
                    <div class="clear"></div>
                    <p><textarea style="width:99%; height: 200px; max-width:99%; max-height:200px;" name="Message">@Model.Message</textarea></p>
                    <div class="contact-buttons"><input type="reset" value="Reset"/>&nbsp;<input type="submit" value="Send"/></div>
                </form>
            </div>
		</div>
    </div>
</div>